<?php
namespace Addons\OaSystem\Model;
//use Think\Model;
use Think\Model\ViewModel;

class OaOrderServiceViewModel extends ViewModel{
    public $viewFields = array(
        'OaServiceOrder'=>array('id','type','status','is_del','time','product','num','emp_name','emp_id','deptid','total','order_no','date'),
        'OaLogisticsService'=>array(
            'name',
            'price',
            'brand',
            'description',
            '_on'=>'OaLogisticsService.id=OaServiceOrder.product'),
        'OaDept'=>array(
            'name'=>'dept_name',
            '_on'=>'OaServiceOrder.deptid=OaDept.id'),
    );
}
?>